//
//  StrategySecondParser.m
//  ITrip
//
//  Created by dllo on 15/5/26.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "StrategySecondParser.h"

@implementation StrategySecondParser

+ (NSMutableArray *)getParser:(NSData *)data
{
    NSMutableArray *arrayData = [NSMutableArray array];
    NSArray *array = [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableContainers error:nil];
    for (NSDictionary *dic in array) {
        StrategySecondModel *model = [StrategySecondModel getStrategySecondModel];
        model.second_name_zh_cn = [dic objectForKey:@"name_zh_cn"];
        model.second_name_en = [dic objectForKey:@"name_en"];
        model.second_image_url = [dic objectForKey:@"image_url"];
        model.secondID = [[dic objectForKey:@"id"]integerValue];
        model.wiki_app_publish = [[dic objectForKey:@"wiki_app_publish"] boolValue];
//        NSLog(@"%d", model.wiki_app_publish);
        [arrayData addObject:model];
    }
    return arrayData;
}

@end
